package com.wangy.context;

/**
 * @author yyzb
 * @date 2024/12/28 11:06
 */
public class BaseContext {
    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getCurrentId(){
        return threadLocal.get();
    }

    public static void setCurrentId(Long currentId) {
        threadLocal.set(currentId);
    }

    public static void removeCurrentId(){
        threadLocal.remove();
    }
}
